//
//  WKAppManager.h
//  ourToken
//
//  Created by wakeup on 2018/5/30.
//  Copyright © 2018年 ourtoken. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#define RGBA(r,g,b,a) [UIColor colorWithRed:r/255. green:g/255. blue:b/255. alpha:a]

//自定义打印 -- 0为不打印  1为打印
#if 1 //调试阶段
#define DLog(...) NSLog(__VA_ARGS__)
#else //发布阶段
#define DLog(...)
#endif

//把后台数据打印为中文(此宏 + Foundation+Log)
#ifdef DEBUG
#define NSLog(format, ...) printf("%s [第%d行] %s\n", [[[NSString stringWithUTF8String: __FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:format,## __VA_ARGS__] UTF8String]);
#else
#define NSLog(...) {}
#endif


#define AppManager [WKAppManager sharedAppManager]

@interface WKAppManager : NSObject

@property (nonatomic, assign) float width;//屏幕宽

@property (nonatomic, assign) float height;//屏幕高

@property (nonatomic, assign) float scale;//相对于5s尺寸的比例

@property (nonatomic, assign) float navigationHeight;//导航栏的高度

@property (nonatomic, assign) float tabBarHeight;//tabBarController的高

@property (nonatomic, assign) float scanView_WH;//二维码中间扫描框的宽高

@property (nonatomic, strong) UIColor *themeColor;//主题颜色

@property (nonatomic, strong) UIFont *btnFont;//按钮文本的大小(以登录按钮为例)

@property (nonatomic, strong) UIColor *tableBackColor;//table的背景颜色(部分需要背景为淡灰色)

@property (nonatomic, strong) UIFont *tableTextFont;//table文本的大小

@property (nonatomic, strong) UIFont *tableDetailFont;//table描述文本的大小

@property (nonatomic, strong) UIColor *tableDetailColor;//table描述文本的颜色

+ (WKAppManager *)sharedAppManager;

@end
